home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 15234 < prev    next >
Encoding:
Text File  |  1996-08-05  |  963 b   |  32 lines

  1. Path: nntp.ulg.ac.be!news
  2. From: Louis Bronne <bronne@montefiore.ulg.ac.be>
  3. Newsgroups: comp.lang.c
  4. Subject: qsort on Solaris
  5. Date: Wed, 17 Apr 1996 22:02:11 -0400
  6. Organization: UniversitΘ de LiΦge
  7. Message-ID: <3175A2A3.1664EB7F@montefiore.ulg.ac.be>
  8. NNTP-Posting-Host: cs508.gw.ulg.ac.be
  9. Mime-Version: 1.0
  10. Content-Type: text/plain; charset=us-ascii
  11. Content-Transfer-Encoding: 7bit
  12. X-Mailer: Mozilla 2.01 (X11; I; Linux 1.1.47 i486)
  13.  
  14. Hello !
  15.  
  16. I'm experiencing big trouble with qsort on Solaris.
  17. My program runs well on Linux (GNU qsort) but the Solaris qsort
  18. has a very strange behaviour. By instance, when it has to sort
  19. only two elements, it does a comparison between the element 0 and 1
  20. (normal !) but does it twice !
  21. After that, it begins to compare the elements -1, -2, -3 etc. with the
  22. 0th one.
  23.  
  24. So a happy "Segmentation fault" rises !
  25.  
  26. Any idea ?
  27.  
  28. -- 
  29. Louis Bronne
  30. E-mail: bronne@montefiore.ulg.ac.be
  31. URL: http://www.montefiore.ulg.ac.be/cgi-bin-ulg/bronne
  32.